﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace slTestingStreaming
{
	public partial class InlineHtml : UserControl
	{


		public InlineHtml()
		{
			// Required to initialize variables
			InitializeComponent();
		}


        #region Source


        public Uri Source
        {
            get { return (Uri)GetValue(SourceProperty); }
            set { SetValue(SourceProperty, value); }
        }

        public static readonly DependencyProperty SourceProperty =
            DependencyProperty.Register("Source", typeof(Uri), typeof(InlineHtml), new PropertyMetadata(SourceChanged));

        private static void SourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            ((InlineHtml)obj).wbMain.Source = (Uri)args.NewValue;
        }
        #endregion
	}


}